package cn.itsource.exam.controller;

import cn.itsource.exam.domain.LogInfo;
import cn.itsource.exam.query.LogInfoQuery;
import cn.itsource.exam.service.LogInfoService;
import cn.itsource.exam.util.PageList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by su on 2020/7/9.
 */
@RestController
@RequestMapping("/log")
public class LogInfoController {

    @Autowired
    private LogInfoService logInfoService;

    /**
     * 分页查询用户
     * @param paramIn
     * @return
     */
    @RequestMapping(value = "listpage",method = RequestMethod.POST)
    public PageList<LogInfo> getUserList(@RequestBody LogInfoQuery paramIn){
        return logInfoService.getLogList(paramIn);
    }
}
